<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>

    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        ul {
            list-style: none;
            width: 100%;
            overflow: hidden;
        }
        
        .item {
            width: 100%;
            height: 40px;
            line-height: 40px;
            background: #00f;
            position: relative;
        }
        
        .item .del {
            width: 60px;
            position: absolute;
            left: 100%;
            background: #f00;
        }
    </style>
</head>

<body>
    <ul>
        <li class="item">
            <span>sflkjasflkj</span>
            <span class="del">删除</span>
        </li>
    </ul>
    <script>
        let x = document.querySelector(".item").addEventListener('touchstart', (e) => {
            x = e.changedTouches[0].pageX
            console.log(x)
        })
        document.querySelector(".item").addEventListener('touchmove', (e) => {
            let mx = e.changedTouches[0].pageX - x
            if (mx > 0)
                mx = 0
            else if (mx < -60)
                mx = -60
            document.querySelector(".item").style.left = mx + "px"

        })
    </script>
</body>

</html>